# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-jaraco.packaging
_pkgreal=${pkgname#"py3-"}
pkgver=9.4.0
pkgrel=0
pkgdesc="tools to supplement packaging Python releases"
url="https://github.com/jaraco/jaraco.packaging"
arch="noarch"
license="MIT"
# archive has no tests
options="!check"
depends="py3-setuptools"
makedepends="py3-gpep517 py3-installer py3-setuptools_scm py3-wheel"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/j/jaraco.packaging/jaraco.packaging-$pkgver.tar.gz"
builddir="$srcdir/jaraco.packaging-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
ace8abee5c574bfb6d679f36bad9cee28d38bdcde09210c34ad23b2006a6337090d3fdfa5f24585119039ebc3a165b002801995d26dae35fabcb52268f70ff10  jaraco.packaging-9.4.0.tar.gz
"
